package com.ticket.sass.common.entity.tenant;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ywb
 * @since 2024-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("resources")
@ApiModel(value="ResourcesEntity对象", description="")
public class ResourceEntity implements Serializable {
    @ApiModelProperty(value = "自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "资源名")
    private String name;

    @ApiModelProperty(value = "资源类型（1-目录，2-菜单，3-按钮）")
    private Integer level;

    @ApiModelProperty(value = "父级ID")
    private Integer parentId;

    @ApiModelProperty(value = "资源data，使用JSON字符串存储")
    private String data;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "权限标识符")
    private String perms;

    @ApiModelProperty(value = "默认排序")
    private Integer sort;
   
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "删除时间")
    private LocalDateTime deletedAt;


}
